/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package seso;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author Administrator
 */
@Embeddable
public class ETFileQuantityPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "TransactionNo")
    private String transactionNo;
    @Basic(optional = false)
    @Column(name = "FileSequence")
    private int fileSequence;

    public ETFileQuantityPK() {
    }

    public ETFileQuantityPK(String transactionNo, int fileSequence) {
        this.transactionNo = transactionNo;
        this.fileSequence = fileSequence;
    }

    public String getTransactionNo() {
        return transactionNo;
    }

    public void setTransactionNo(String transactionNo) {
        this.transactionNo = transactionNo;
    }

    public int getFileSequence() {
        return fileSequence;
    }

    public void setFileSequence(int fileSequence) {
        this.fileSequence = fileSequence;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (transactionNo != null ? transactionNo.hashCode() : 0);
        hash += (int) fileSequence;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ETFileQuantityPK)) {
            return false;
        }
        ETFileQuantityPK other = (ETFileQuantityPK) object;
        if ((this.transactionNo == null && other.transactionNo != null) || (this.transactionNo != null && !this.transactionNo.equals(other.transactionNo))) {
            return false;
        }
        if (this.fileSequence != other.fileSequence) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "seso.ETFileQuantityPK[ transactionNo=" + transactionNo + ", fileSequence=" + fileSequence + " ]";
    }
    
}
